package test;

public class Main {
    public static void main(String[] args) {

        Rechteck[] r1 = new Rechteck[2];

        r1[0] = new Rechteck();
        r1[0].x = 100;
        r1[0].y = 200;

        r1[1] = new Rechteck();
        r1[1].x = 300;
        r1[1].y = 400;

        System.out.println("r1[0].x= " + r1[0].x);
        System.out.println("r1[0].y= " + r1[0].y);
        
        System.out.println("r1[1].x= " + r1[1].x);
        System.out.println("r1[1].y= " + r1[1].y);
    }
}
